<?php
namespace app\validate;

use app\base\BaseValidate;

/**
 * 验证器-GoodsValidate
 * Class GoodsValidate
 * @package app\validate
 */
class DistributorValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require|number',
        'name|渠道商名称' => 'require',
        'phone|联系电话' => 'require',
        'status|状态' => 'require|in:1,2',
    ];


    //验证场景-更新
    public function sceneUpdate()
    {
        return $this->only(['id','name']);
    }
}
